<?php if(!class_exists('raintpl')){exit;}?><!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="http://localhost/kpi/html/./style.css" rel="stylesheet" type="text/css">

<?php echo jquery(); ?>
<?php echo tiny_mce(); ?>
<?php echo jquery_ui('smoothness'); ?>
<?php echo html5(); ?>
<?php echo jquery_validate('th'); ?>

<script type="text/javascript" src = "<?php echo $url;?>script/jquery-popup.js"></script>

<title>ระบบประเมิน</title>

<script type="text/javascript">

$(function() {
	$(".delete").click(function() {
		if(confirm('ท่านแน่ใจที่จะลบ ใช่หรือไม่')){
			return true;
		}else{
			return false;
		}
	});

	$("form").validationEngine();
});

</script>

</head>
<body>

<div id = "wrapper">

	<?php if( $login==true ){ ?>
	<div id = "profile">
		<form action = "year-change.php" method="post">
			<input type = "hidden" name = "uri" value = "<?php echo $uri;?>">
			<span class = "year"> ปีการศึกษา
				<select name = "year">
					<?php $counter1=-1; if( isset($all_year) && is_array($all_year) && sizeof($all_year) ) foreach( $all_year as $key1 => $value1 ){ $counter1++; ?>
						<?php if( $year==$value1["year"] ){ ?>
							<option value = "<?php echo $value1["year"];?>" selected><?php echo $value1["year"];?></option>
						<?php }else{ ?>
							<option value = "<?php echo $value1["year"];?>"><?php echo $value1["year"];?></option>
						<?php } ?>
					<?php } ?>
				</select>
				<input type = "submit" value = "ตกลง">
			</span>
		</form>
		<span class = "level"><b>ตำแหน่ง</b> : <?php echo $user['level_thai_name'];?></span>
		<span class = "name"><b>ชื่อ</b> : <?php echo $user['name'];?></span>
	</div>
	<?php } ?>

	<div id = "header"></div>